package Lecture6;

import java.util.Scanner;

public class ClassTask8  {

	public static void main(String[] args) {

		Scanner sc = new Scanner (System.in);
		
		//System.out.println("Please enter the numbers you want to print: ");
		//String number = sc.nextLine();

		
		String number = "83366636667770202202220313313331";

		char num;
		char prevNumber = number.charAt(0);
		int count = 1;

		int caseNumber = 0;
		int caseLetter = 0;
		
		
		for (int i = 1; i < number.length() + 1; i++) 
		{
			if(i == number.length())
				num = 0;
			else
				num = number.charAt(i);

			if (prevNumber != num)
			{
				//System.out.println(prevNumber + " " + count);
				
				caseNumber = Integer.valueOf(prevNumber);
				caseLetter = Integer.valueOf(count);
				//System.out.println((caseNumber - (char)'0') + " " + count);
				
				switch (caseNumber - (char)'0')
				{
					case 2: 
							switch (count)
							{
								case 1: System.out.print("a"); break;
								case 2: System.out.print("b"); break;
								case 3: System.out.print("c"); break;
							}
						break;
						
					case 3: switch (count)
							{
							case 1: System.out.print("d"); break;
							case 2: System.out.print("e"); break;
							case 3: System.out.print("f"); break;
					    	}
						break;
								
					case 4:
						switch (count)
							{
							case 1: System.out.print("g"); break;
							case 2: System.out.print("h"); break;
							case 3: System.out.print("i"); break;
					    	}
				    	break;
								
					case 5:
						switch (count)
							{
							case 1: System.out.print("j"); break;
							case 2: System.out.print("k"); break;
							case 3: System.out.print("l"); break;
					    	}
						break;
					case 6:
						switch (count)
							{
							case 1: System.out.print("m"); break;
							case 2: System.out.print("n"); break;
							case 3: System.out.print("o"); break;
					    	}
						break;
					case 7:
						switch (count)
							{
							case 1: System.out.print("p"); break;
							case 2: System.out.print("q"); break;
							case 3: System.out.print("r"); break;
							case 4: System.out.print("s"); break;
					    	}
			        	break;
					case 8: 
						switch (count)
							{
							case 1: System.out.print("t"); break;
							case 2: System.out.print("u"); break;
							case 3: System.out.print("v"); break;
							}
						break;
					case 9:
						switch (count)
							{
							case 1: System.out.print("w"); break;
							case 2: System.out.print("x"); break;
							case 3: System.out.print("y"); break;
							case 4: System.out.print("z"); break;
					    	}
						break;
					case 0: System.out.print(" ");break;
					case 1:
						switch (count)
							{
							case 1: System.out.print(","); break;
							case 2: System.out.print("."); break;
							}
				}
				prevNumber = num;
				count = 1;
				
			} 
			else
			{
				count++;
			}
		}


	}

}
